package com.xly.webclick.cusview.loading;


public enum LoadingType {
    CIRCLE(SingleCircleBuilder.class);

    private final Class<?> mBuilderClass;

    LoadingType(Class<?> builderClass)
    {
        this.mBuilderClass = builderClass;
    }

    <T extends BaseAnimatorBuilder> T newInstance()
    {
        try
        {
            return (T) mBuilderClass.newInstance();
        }
        catch (Exception e)
        {
           e.printStackTrace();
        }
        return null;
    }
}
